namespace GameNesSL
{
    using System;
    using System.Collections.Generic;
    using WebService;

    public static class GameContext
    {
        public static StatsHolder stats = new StatsHolder();

        private static List<string> screenshotUrls = new List<string>();

        public static List<string> ScreenshotUrls
        {
            get { return ScreenshotUrls; }
        }

        public static byte[] RomData { get; set; }

        public static byte[] SaveData { get; set; }

        public static bool ShouldLoadState { get; set; }

        public static string ErrorDescription { get; set; }

        public static WebService.WebServiceMethods webMethods = new WebServiceMethods();

        public static event EventHandler GameLoaded = null;
        public static event EventHandler GameError = null;

        public static void SignalGameLoaded()
        {
            if (GameLoaded!=null)
            {
                GameLoaded(null, null);
            }
        }

        public static void SignalGameError()
        {
            if (GameError != null)
            {
                GameError(null, null);
            }
        }
    }
}